package com.ruoyi.project.plan.welding.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.plan.welding.mapper.PlanWeldingMapper;
import com.ruoyi.project.plan.welding.domain.PlanWelding;
import com.ruoyi.project.plan.welding.service.IPlanWeldingService;
import com.ruoyi.common.core.text.Convert;

/**
 * 焊接计划表Service业务层处理
 * 
 * @author wld
 * @date 2023-04-20
 */
@Service
public class PlanWeldingServiceImpl implements IPlanWeldingService 
{
    @Autowired
    private PlanWeldingMapper planWeldingMapper;

    /**
     * 查询焊接计划表
     * 
     * @param sbId 焊接计划表主键
     * @return 焊接计划表
     */
    @Override
    public PlanWelding selectPlanWeldingBySbId(Long sbId)
    {
        return planWeldingMapper.selectPlanWeldingBySbId(sbId);
    }

    /**
     * 查询焊接计划表列表
     * 
     * @param planWelding 焊接计划表
     * @return 焊接计划表
     */
    @Override
    public List<PlanWelding> selectPlanWeldingList(PlanWelding planWelding)
    {
        return planWeldingMapper.selectPlanWeldingList(planWelding);
    }

    /**
     * 新增焊接计划表
     * 
     * @param planWelding 焊接计划表
     * @return 结果
     */
    @Override
    public int insertPlanWelding(PlanWelding planWelding)
    {
        return planWeldingMapper.insertPlanWelding(planWelding);
    }

    /**
     * 修改焊接计划表
     * 
     * @param planWelding 焊接计划表
     * @return 结果
     */
    @Override
    public int updatePlanWelding(PlanWelding planWelding)
    {
        return planWeldingMapper.updatePlanWelding(planWelding);
    }

    /**
     * 批量删除焊接计划表
     * 
     * @param sbIds 需要删除的焊接计划表主键
     * @return 结果
     */
    @Override
    public int deletePlanWeldingBySbIds(String sbIds)
    {
        return planWeldingMapper.deletePlanWeldingBySbIds(Convert.toStrArray(sbIds));
    }

    /**
     * 删除焊接计划表信息
     * 
     * @param sbId 焊接计划表主键
     * @return 结果
     */
    @Override
    public int deletePlanWeldingBySbId(Long sbId)
    {
        return planWeldingMapper.deletePlanWeldingBySbId(sbId);
    }
}
